package com.example.webcomen.Service;

import com.example.webcomen.Model.User;
import org.springframework.security.core.GrantedAuthority;

import java.util.List;

public interface LoginService {
    void sendEmailCode(String email);

    boolean validateEmailCode(String code, String uuid);

    void validatePassword(String password, User user);

    List<GrantedAuthority> authorityList();

    boolean registerNewUser(String email,String password,String username);
}
